const request = require('../utils/request')

/**
 * 获取支付二维码
 *
 * @return {Promise<unknown>>}
 */
export const getPayQrcode = (order_id,data) =>request.get(`/api/orders/${order_id}/pay`,data)

/**
 * 查询订单支付状态
 *
 * @param order_id  订单id
 * @return {Promise<unknown>}
 */
export const getPayStatus = (order_id) =>request.get(`/api/orders/${order_id}/status`,{},false)
